package org.dromara.system.controller.system;


import cn.dev33.satoken.annotation.SaIgnore;
import jakarta.annotation.Resource;
import lombok.extern.log4j.Log4j2;
import org.dromara.system.config.core.RedisMQSender;
import org.dromara.system.enums.RedisMQConstant;
import org.springframework.web.bind.annotation.*;

/**
 * @author lilu
 */
@Log4j2
@RestController
@RequestMapping(value = "/redis/mq")
public class RedisMQController {

    @Resource
    private RedisMQSender redisMQSender;

    @PostMapping("/test")
    @SaIgnore
    public String send1() {
        redisMQSender.send(RedisMQConstant.TEST_QUEUE, "123");
        return "1";
    }
}
